<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>{$index.name|default='XX网站'}</title>

    <!-- Font Awesome -->
    <link rel="stylesheet" href="__INDEX_PLUGINS__/fontawesome-free/css/all.min.css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" href="__INDEX_PLUGINS__/icheck-bootstrap/icheck-bootstrap.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="__INDEX_CSS__/adminlte.min.css">
    <link rel="stylesheet" href="__INDEX_PLUGINS__/icheck-bootstrap/icheck-bootstrap.min.css">
    <link rel="stylesheet" href="__INDEX_PLUGINS__/sweetalert2/sweetalert2.min.css">
    <!-- jQuery -->
    <script src="__INDEX_PLUGINS__/jquery/jquery.min.js"></script>
    <!-- Bootstrap 4 -->
    <script src="__INDEX_PLUGINS__/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="__INDEX_PLUGINS__/sweetalert2/sweetalert2.all.min.js"></script>
    <script src="__INDEX_PLUGINS__/jquery-validation/jquery.validate.min.js"></script>
    <script src="__INDEX_PLUGINS__/jquery-validation/localization/messages_zh.min.js"></script>

    <script>
        var indexLogoutUrl = '{:url("index/auth/logout")}';
    </script>
    <!-- AdminLTE App -->
    <script src="__INDEX_JS__/adminlte.min.js"></script>
    <script src="__INDEX_JS__/index.js"></script>
    <link rel="stylesheet" href="../../../../public/static/index/plugins/fontawesome-free/css/all.min.css">
</head>
<body class="hold-transition layout-top-nav">
<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
        <div class="container">
            <a href="{:url('index/index')}" class="navbar-brand">
                <img src="/static/admin/images/logo.png" alt="网站Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
                <span class="brand-text font-weight-light">XX网站</span>
            </a>

            <button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse order-3" id="navbarCollapse">
                <!-- Left navbar links -->
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a href="{:url('index/index')}" class="nav-link">首页</a>
                    </li>
                    <li class="nav-item">
                        <a href="{:url('index/product')}" class="nav-link">产品</a>
                    </li>

                    <li class="nav-item">
                        <a href="{:url('index/about')}" class="nav-link">关于</a>
                    </li>

                    <li class="nav-item">
                        <a href="{:url('admin/index/index')}" class="nav-link">去后台</a>
                    </li>

                </ul>

                <!-- SEARCH FORM -->
                <form class="form-inline ml-0 ml-md-3">
                    <div class="input-group input-group-sm">
                        <input class="form-control form-control-navbar" type="search" placeholder="搜索" aria-label="Search">
                        <div class="input-group-append">
                            <button class="btn btn-navbar" type="submit">
                                <i class="fas fa-search"></i>
                            </button>
                        </div>
                    </div>
                </form>
            </div>

            <!-- Right navbar links -->
            <ul class="order-1 order-md-3 navbar-nav navbar-no-expand ml-auto">
                <!-- Messages Dropdown Menu -->

                <li class="nav-item dropdown user-menu">
                    <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
                        <img src="{$index.user.avatar|default='/static/admin/images/avatar.png'}" class="user-image img-circle elevation-2" alt="头像">
                        <span class="d-none d-md-inline">{$index.user.nickname|default=''}</span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                        <!-- User image -->
                        <li class="user-header bg-primary">
                            <img src="{$index.user.avatar|default='/static/admin/images/avatar.png'}" class="img-circle elevation-2" alt="头像">
                            <p>
                                {$index.user.nickname|default=''}
                                <small>{$index.user.username|default=''}</small>
                            </p>
                        </li>
                        <li class="user-footer">
                            <a href="{:url('index/user/index')}" class="btn btn-default btn-flat">个人资料</a>
                            <a href="#" onclick="indexLogout()" class="btn btn-default btn-flat float-right">退  出</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!-- /.navbar -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0">{$index.name|default='xx网站'}</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="/">首页</a></li>
                            <li class="breadcrumb-item active">{$index.name|default='xx网站'}</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->

        <!-- Main content -->
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">
                                <h5 class="card-title">个人信息展示</h5>

                                <p class="card-text">
                                    uid：{$index.user.id|default=''}<br/>
                                   账号：{$index.user.username|default=''}<br/>
                                   密码：{$index.user.password|default=''}<br/>
                                   注册时间：{$index.user.create_time|default=''}<br/>

                                </p>

                                <a href="#" class="card-link">链接</a>
                                <a href="#" class="card-link">另一个链接</a>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
    <footer class="main-footer">
        <!-- To the right -->
        <div class="float-right d-none d-sm-inline">
            随便写点啥
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2021 <a href="/">xx网站</a>.</strong> All rights reserved.
    </footer>
</div>
</body>
</html>
